package edu.kjxy.day02Synchronized.synNotExtends;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/1 20:28
 */
public class MyThreadA extends Thread{
    private Sub sub;

    public MyThreadA(Sub sub){
        super();
        this.sub = sub;
    }

    @Override
    public void run() {
        sub.serviceMethod();
    }
}
